package com.iman.Confucius.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "drm_quiz_anwsers")
public class QuizAnswers {
	// `id` `quiz_id` `user_id` `anwser_tp` `content` `del_yn` `replay_dt`
	@Id
	@GenericGenerator(name = "paymentableGenerator", strategy = "identity")
	@Column(name = "id", unique = true, nullable = false)
	private Long answerId;
	@Column(name = "quiz_id")
	private Long quizId;
	@Column(name = "user_id")
	private Long userId;
	@Column(name = "anwser_tp")
	private int answerTp;
	@Column(name = "content")
	private String content;
	@Column(name = "del_yn")
	private int delYn;
	@Column(name = "replay_dt")
	private Date replayDate;

	public Long getAnswerId() {
		return answerId;
	}

	public void setAnswerId(Long answerId) {
		this.answerId = answerId;
	}

	public Long getQuizId() {
		return quizId;
	}

	public void setQuizId(Long quizId) {
		this.quizId = quizId;
	}

	public int getAnswerTp() {
		return answerTp;
	}

	public void setAnswerTp(int answerTp) {
		this.answerTp = answerTp;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getDelYn() {
		return delYn;
	}

	public void setDelYn(int delYn) {
		this.delYn = delYn;
	}

	public Date getReplayDate() {
		return replayDate;
	}

	public void setReplayDate(Date replayDate) {
		this.replayDate = replayDate;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
}
